<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%!boolean isPrime(int num){
	boolean flag=true;
	if(num==1) {
		flag=false;
	}else if(num==2){
		flag=true;
	}else{
	for(int i=2;i<num;i++){
		if(num%i==0){
			flag=false;
			break;
		}
	}
	}
	return flag;
}%>

<%
int count=0;
for(int i=1;i<=100;i++){
	if(isPrime(i)){
		count+=i;
	}
}
%>
1~100之间的素数之和是:<%=count %>
</body>
</html>